package com.douwong.student.model;

import java.io.Serializable;

/**
 * 课堂考试
 * @author 
 *
 */
public class ClassExam implements Serializable,Comparable<ClassExam>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int ranking;
	private int status;
	private int studentId;
	private String studentName;
	private String subjectName;
	private String lesLessonExamineexTitle;
	private String lesLessonExaminecreatetime;
	private String exResult;
	private String exYesNo;
	private int userClass;
	private int ynComplete;
	private int ynJoin;
	private int examineId;
	private String exScore;
	private String lesLessonExamineexScore;
	private int id;
	private int exWrongItems;
	public int getRanking() {
		return ranking;
	}
	public void setRanking(int ranking) {
		this.ranking = ranking;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getStudentId() {
		return studentId;
	}
	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}
	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getSubjectName() {
		return subjectName;
	}
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}
	public int getUserClass() {
		return userClass;
	}
	public void setUserClass(int userClass) {
		this.userClass = userClass;
	}
	public int getYnComplete() {
		return ynComplete;
	}
	public void setYnComplete(int ynComplete) {
		this.ynComplete = ynComplete;
	}
	public int getYnJoin() {
		return ynJoin;
	}
	public void setYnJoin(int ynJoin) {
		this.ynJoin = ynJoin;
	}
	public int getExamineId() {
		return examineId;
	}
	public void setExamineId(int examineId) {
		this.examineId = examineId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getLesLessonExamineexTitle() {
		return lesLessonExamineexTitle;
	}
	public void setLesLessonExamineexTitle(String lesLessonExamineexTitle) {
		this.lesLessonExamineexTitle = lesLessonExamineexTitle;
	}
	public String getLesLessonExaminecreatetime() {
		return lesLessonExaminecreatetime;
	}
	public void setLesLessonExaminecreatetime(String lesLessonExaminecreatetime) {
		this.lesLessonExaminecreatetime = lesLessonExaminecreatetime;
	}
	public String getExScore() {
		return exScore;
	}
	public void setExScore(String exScore) {
		this.exScore = exScore;
	}
	public String getLesLessonExamineexScore() {
		return lesLessonExamineexScore;
	}
	public void setLesLessonExamineexScore(String lesLessonExamineexScore) {
		this.lesLessonExamineexScore = lesLessonExamineexScore;
	}
	public int getExWrongItems() {
		return exWrongItems;
	}
	public void setExWrongItems(int exWrongItems) {
		this.exWrongItems = exWrongItems;
	}
	
	public String getExResult() {
		return exResult;
	}
	public void setExResult(String exResult) {
		this.exResult = exResult;
	}
	public String getExYesNo() {
		return exYesNo;
	}
	public void setExYesNo(String exYesNo) {
		this.exYesNo = exYesNo;
	}
	@Override
	public int compareTo(ClassExam another) {
		if(another.getLesLessonExaminecreatetime().compareTo(this.lesLessonExaminecreatetime)>0){
			return 1;
		}else if(another.getLesLessonExaminecreatetime().compareTo(this.lesLessonExaminecreatetime)<0){
			return -1;
		}else{
			return 0;
		}
		
	}


	

}
